<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>教师首页</title>
    <!--导入layui--><!--导入jquery包-->
    <script src="../jQuery/jquery-1.11.2.js"></script>
    <!--导入layui包-->
    <link rel="stylesheet" href="../layui/layui/css/layui.css"/>
    <script src="../layui/layui/layui.js"></script>
    <script src="../js/LoginJs.js"></script>
</head>
<body>
    <div class="layui-carousel" id="test1">
        <div carousel-item>
            <div>
                <img src="../img/bg2.jpg">
            </div>
            <div>
                <img src="../img/bg1.jpg">
            </div>
        </div>
    </div>
    <div>
        <img src="../img/ph1.png">
        <img src="../img/ph2.png">
        <img src="../img/ph3.png">
    </div>
<script src="../layui-v2.5.6/layui/layui.js"></script>
<script>
    layui.use('carousel', function(){
        var carousel = layui.carousel;
        //建造实例
        carousel.render({
            elem: '#test1'
            ,height:'400px'
            ,width: '100%' //设置容器宽度
            ,arrow: 'always' //始终显示箭头
            ,interval:'5000'//下一条公告时间为5秒
        });
    });
</script>
</body>
</html>
